package com.bookm.bookm.entity;

import cn.hutool.json.JSONUtil;

/**
 * 读者信息实体类
 */
public class Reader {
    /*
        读者编号
     */
    private String id;
    /*
        读者名称
     */
    private String name;
    /*
        读者专业
     */
    private Integer professional;
    /*
        学院
     */
    private Integer college;
    /*
        邮箱
     */
    private String email;
    /*
        手机号
     */
    private String phone;
    /*
        密码
     */
    private String pwd;
    /*
        权限
     */
    private String roles;
    /*
        账号状态
     */
    private Integer status;
    public Reader(){}

    public Reader(String id, String name, Integer professional, Integer college, String email, String phone, String pwd, String roles) {
        this.id = id;
        this.name = name;
        this.professional = professional;
        this.college = college;
        this.email = email;
        this.phone = phone;
        this.pwd = pwd;
        this.roles = roles;
    }

    public void setProfessional(Integer professional) {
        this.professional = professional;
    }

    public void setCollege(Integer college) {
        this.college = college;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getProfessional() {
        return professional;
    }

    public Integer getCollege() {
        return college;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}
